package memberController;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import vo.MemberVo;
import dao.MemberDao;

@Controller
public class MemberModifyController {
	
	@Autowired
	MemberDao mdao;

	@RequestMapping(value="/project/member/member_modify.do")
	public ModelAndView exe(MemberVo mvo) throws Exception {	
		
		mdao.memberModify(mvo);
		
		ModelAndView mv = new ModelAndView();
		mv.addObject("menu_no","2");
		mv.addObject("state","list");
		//mv.setViewName("redirect:../main/community_main.do");
		mv.setViewName("redirect:../main/community_main.do?state=inform");
		
		return mv;
	}

}